package com.example.java_message_queue.common;

import com.example.java_message_queue.common.BasicProperties;

import java.io.IOException;

@FunctionalInterface
public interface Consumer {
    // consumerTag 消费者标识
    // envelope (英文原义为 信封), 用来表示环境信息.
    void handleDelivery(String consumerTag, BasicProperties properties, byte[] body) throws MqException, IOException;
}
